package com.wwl.cms.utils.designModeTest.command;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/9 15:50
 * @description:
 */
public class TVOnCommand implements Command {
    //聚合
    TVReceiver tv;

    public TVOnCommand(TVReceiver tv) {
        super();
        this.tv = tv;
    }

    @Override
    public void execute() {
        tv.on();

    }

    @Override
    public void undo() {
        tv.off();
    }
}
